package com.cy.ppj.model.ao.product;

import com.cy.ppj.model.enums.RepayType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @description: 产品利率
 * @author: Ocean
 * @create: 2018-07-18 15:59
 **/
@Data
@ApiModel("产品利率")
public class ProductRateAO {

    @ApiModelProperty(value = "利率", example = "0", required = true)
    @NotNull(message = "利率不可为空")
    private BigDecimal rate;

    @ApiModelProperty(value = "期数", example = "0", required = true)
    @NotNull(message = "期数不可为空")
    private Integer periods;

    @ApiModelProperty(value = "还款方式", required = true)
    @NotNull(message = "还款方式不可为空")
    private RepayType repayType;

}
